﻿using Microsoft.EntityFrameworkCore;
using Swashbuckle.AspNetCore.Annotations;
using System;
using System.Text.Json.Serialization;

namespace CommonUtils
{
    public class DbEntity
    {
        [SwaggerSchema("主键ID")]
        [Comment("主键")]
        [JsonPropertyName("id")]
        public string Id { get; set; }

        public DbEntity()
        {
            Id = Guid.NewGuid().ToString("N");
        }
    }
}
